// close
function closeDiv(sID){
  var oObj = document.getElementById(sID);
  oObj.innerHTML = "";
  oObj.className= "noneRateRecord";
}
//  show the record page
function showAmountsFloatPage(gametype, mem){
  var oObj = document.getElementById("divAmountsFloat");
  var sUrl = "op.php?op=agent&fp=amounts_float&gametype=" + gametype + "&mem=" + mem; 
  oObj.innerHTML = "<div class='td0 bgImg_" + gametype + "' align=right><input type='button' value='&nbsp;X&nbsp;' onclick='javascript:closeDiv(\"divAmountsFloat\");' class='c4'></div><iframe src='" + sUrl + "' width='100%' height='450'></iframe><br />"; 
  oObj.className = "showRateRecord";
}

// show float tr
function showTrAmountsFloat(oThis){
  var oObj = document.getElementById("trAmountsFloat");
  if(oThis.checked == true){
    oObj.style.display = "";
  }else{
    oObj.style.display = "none";
  } 
  
}

//  show the mymodify page
function showMymodifyPage(gametype, mem){
  var oObj = document.getElementById("divAmountsFloat");
  var oTitle = document.getElementById("myModifyTitle");
  
  var sUrl = "op.php?op=agent&fp=mymodify&gametype=" + gametype + "&myid=" + mem;
  var classtype = "td0 bgClc_" + gametype; 
  oObj.innerHTML = "<div class='" + classtype + "' style='height:20px;'><span style='float:left;'>"+mem + oTitle.value +"</span><span style='float:right;'><input type='button' value='&nbsp;X&nbsp;' onclick='javascript:closeDiv(\"divAmountsFloat\");' class='c4'></span><br style='clear:both;'></div><iframe src='" + sUrl + "' width='100%' height='450'></iframe><br />"; 
  oObj.className = "showRateRecord";
}

function upzc(o)
	{
		var tr=$(o).parent().parent();
		var value=new Array();
		tr.find("input[type=text]").each(function(index, element) {
            value.push(element.value);
        });	
		$("#zctable tr").each(function(index, element) {
            $(this).find("input[type=text]").each(function(index, element) {
				element.value=value[index];
			});	
        });
		
	}